// @ts-ignore
/* eslint-disable */
import request from '@/request'

/** 此处后端没有提供注释 POST /errorPractice/add */
export async function addErrorPractice(
  body: API.ErrorPracticeAddRequest,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseBoolean>('/errorPractice/add', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  })
}

/** 此处后端没有提供注释 POST /errorPractice/delete */
export async function deleteErrorPractice(
  body: API.DeleteRequest,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseBoolean>('/errorPractice/delete', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  })
}

/** 此处后端没有提供注释 POST /errorPractice/list/page/vo */
export async function listErrorPracticeVoByPage(
  body: API.ErrorPracticeQueryRequest,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponsePageErrorPracticeVO>('/errorPractice/list/page/vo', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  })
}

/** 此处后端没有提供注释 POST /errorPractice/update */
export async function updateErrorPractice(
  body: API.ErrorPracticeUpdateRequest,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseBoolean>('/errorPractice/update', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  })
}
